import os
from datetime import datetime
path = 'C:'

log = open('log.txt', 'w')
for root, dirs, files in os.walk(path):
	for name in files:
		fullname = os.path.join(root, name)
		accestime = os.path.getatime(fullname)
		modiftime = os.path.getmtime(fullname)
		size = os.path.getsize(fullname)
	log.write('File_name: %s | Last_access_date: %s | Last_modify_date: %s | file_size: %s\n' % (fullname, datetime.fromtimestamp(accestime), datetime.fromtimestamp(modiftime), size))
print 'END'
log.close()